package tools.phylip;

import tools.fasta.FastaSeq;

public class PhylipSeq {

	private String id,seq;
	
	public PhylipSeq(){
		this("","");
	}
	public PhylipSeq(String id){
		this(id,"");
	}
	public PhylipSeq(String id,String seq){
		this.id=id;
		this.seq=seq;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSeq() {
		return seq;
	}
	public void setSeq(String seq) {
		this.seq = seq;
	}
	
	public void append(String s){
		seq+=s;
	}
	
	public FastaSeq toFastaSeqWithDashes(){
		return new FastaSeq(">"+id,seq);
	}
	public FastaSeq toFastaSeq(){
//		return new FastaSeq(">"+id,seq.replace("-", ""));
		return new FastaSeq(">"+id,seq);
	}
}
